package cn.com.open.errorquestion.mapper;


import cn.com.open.errorquestion.model.PagerQuestion;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface PagerQuestionMapper {

    @Select("SELECT * FROM pager_question WHERE paperId = #{paperId} AND questionId = #{questionId} LIMIT 1")
    PagerQuestion findOne(PagerQuestion pagerQuestion);

    @Insert("INSERT INTO pager_question VALUES(#{id},#{paperId},#{questionId})")
    void save(PagerQuestion pagerQuestion);
}
